package com.mvp.shq.washer.ui.reg;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.BaseResult;
import com.mvp.shq.washer.entity.TokenBean;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/24.
 */

public interface RegConstract {
    interface Model extends BaseModel {
        Observable<BaseResult<TokenBean>> reg(String mobile,String pwd,String code,String timestamp,String sign);
        Observable<BaseResult<String>> getCode(String mobile);
    }
    interface View extends BaseView{
        void regSuccess();
        void regFail(String msg);
        void getCodeSuccess();
        void getCodeFail(String msg);
    }
    public abstract class Presenter extends BasePresenter<Model,View>{
        abstract void reg(String mobile,String pwd,String code);
        abstract void code(String mobile);
    }
}
